package cn.inyaa.admin.sys.dao;

import cn.inyaa.admin.sys.bean.InyaaSysApi;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface InyaaSysApiDao extends JpaRepository<InyaaSysApi, Integer> {

    @Query(value = "select url from InyaaSysApi where allowAccess = TRUE")
    List<String> findUrlByAllowAccess();

}
